package org.example.gradleadmin.controller;


import gradle.mybatis.common.response.ApiResponse;
import io.swagger.v3.oas.annotations.Operation;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.example.gradleadmin.model.dto.SystemUserQueryPageDto;
import org.example.gradleadmin.model.vo.SystemUserPageVo;
import org.example.gradleadmin.service.SystemUserService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 1141193930@qq.com
 */
@Slf4j
@RestController
@RequestMapping("/user")
public class SystemUserController {

    @Resource
    private SystemUserService systemUserService;

    @PostMapping(value = "/listPage")
    @Operation(summary = "用户列表", method = "POST")
    public ApiResponse<List<SystemUserPageVo>> listPage(@RequestBody SystemUserQueryPageDto queryDto) {

        return systemUserService.listPage(queryDto);
    }


}
